package com.kl.modular.common.controller;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 错误控制器
 *
 * @author kl_zjb
 * @date 2017/2/11 16:07
 *
 */
@Controller
public class ErrorController {

    private static final Logger logger = LoggerFactory.getLogger(ErrorController.class);


    /**
     * 没有权限页面
     * @return
     */
    @RequestMapping(value = "/error/noAuth" , method = RequestMethod.GET)
    public String noAuthView(){

        return "error/no_auth.jsp";
    }

    /**
     * 404页面
     * @return
     */
    @RequestMapping(value = "/error/404" , method = RequestMethod.GET)
    public String error404(){

        return "error/404.jsp";
    }

    /**
     * 500页面
     * @return
     */
    @RequestMapping(value = "/error/500", method = RequestMethod.GET)
    public String error500(){

        return "error/500.jsp";
    }

    /**
     * 403页面
     * @return
     */
    @RequestMapping(value = "/error/403", method = RequestMethod.GET)
    public String error403(){

        return "error/403.jsp";
    }
}
